/**
 * Desc
 * @description Holp You Do Good But Not Evil
 * @copyright   Copyright 2014-2015 <ycchen@iwshop.cn>
 * @license     LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author      Chenyong Cai <ycchen@iwshop.cn>
 * @package     Wshop
 * @link        http://www.iwshop.cn
 */
var shoproot = location.pathname.substr(0, location.pathname.lastIndexOf('/') + 1);

require.config({
    paths: {
        util: 'util',
        Spinner: 'spin.min',
        jquery: 'http://cdn.ycchen.cc/jquery/jquery-2.1.1.min',
        config: 'config',
        Cart: 'class/cart.class',
        Slider: 'class/slider.class',
        Tiping: 'class/tiping.class',
        touche: 'class/touche',
        pdCounter: 'class/pdcounter.class',
        lazyLoad: 'jquery.lazyload.min'
    },
    shim: {
        'util': {
            exports: 'util'
        },
        'Spinner': {
            exports: 'Spinner',
            deps: ['util']
        },
        'jquery': {
            exports: '$',
            deps: ['config']
        },
        'lazyLoad':{
            deps: ['jquery']
        },
        'Cart':{
            deps: ['jquery']
        }
    },
    urlArgs: "bust=1.5.2",
    //urlArgs: "bust=" + (new Date()).getTime(),
    xhtml: true
});

define([], function() {
    var config = {};
    
    return config;
});